package com.cleaningcloud.erp.domain;

import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 盘点明细对象 erp_ware_check_details
 *
 * @author cleaningcloud
 * @date 2024-10-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ErpWareCheckDetails extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 盘点明细ID
     */
    private Long wareCheckDetailsId;

    /**
     * 盘点ID
     */
    private Long wareCheckId;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID", sort = 1)
    private Long commodityId;

    // 库存数量
    @Excel(name = "当前库存")
    private int wareCommodityNumber;

    /**
     * 盘点数量
     */
    @Excel(name = "实盘数量")
    private int wareCheckNumber;

    /**
     * 盈亏数量
     */
    private int quantityNumber;

    /**
     * 盈亏结果(0盘盈1盘亏2正常)
     */
    private Integer quantityResult;

    /**
     * 盈亏金额
     */
    private BigDecimal quantityPrice;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("wareCheckDetailsId", getWareCheckDetailsId())
                .append("wareCheckId", getWareCheckId())
                .append("commodityId", getCommodityId())
                .append("wareCheckNumber", getWareCheckNumber())
                .append("quantityNumber", getQuantityNumber())
                .append("quantityResult", getQuantityResult())
                .append("quantityPrice", getQuantityPrice())
                .toString();
    }
}
